package com.zhuang.visitor.static_dispatch;

/**
 * @Classname Client
 * @Description 静态分派 测试类
 * @Date 2021/3/27 17:12
 * @Created by dell
 */

public class Client {
    public static void main(String[] args) {
        Animal a = new Animal();
        Animal a1 = new Dog();
        Animal a2 = new Cat();

        Execute execute = new Execute();
        execute.execute(a);
        execute.execute(a1);
        execute.execute(a2);
    }
}
